import { http } from "@/assets/js/http";

export function homtMy(data) {
  return http("/user/info", "get", data, false);
}

export function passWord(data) {
  return http("/user/update_password", "put", data, true);
}

export function auThenpassWord(data) {
  return http("/user/update_pay_password", "put", data, true);
}

export function userKey(data) {
  return http("/user/user_key", "post", data, true);
}

// export function obtainKey(data) {
//   return http("/user/get_platform_public_key", "get", data, true);
// }

export function generateKey(data) {
  return http("/user/generateKey", "get", data, true);
}

export function uploadKey(data) {
  return http("/user/upload_key", "put", data, true);
}

export function checkPayPassword(data) {
  return http("/user/check_pay_password", "post", data, true);
}

export function channeList(data) {
  return http("/user/get_pay_channel_list", "get", data, false);
}
